package com.zwps.biz.api.model.vo.strsvrr;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class RzWRelationVO {
    private BigDecimal rz;
    private BigDecimal w;
    private BigDecimal area;
    private BigDecimal originalW;

    public void setRz(BigDecimal rz) {
        this.rz = rz == null ? null : rz.setScale(2, BigDecimal.ROUND_HALF_UP);
    }

    public void setW(BigDecimal w) {
        this.w = w == null ? null : w.setScale(2, BigDecimal.ROUND_HALF_UP);
    }

    public void setArea(BigDecimal area) {
        this.area = area == null ? null : area.setScale(2, BigDecimal.ROUND_HALF_UP);
    }
}
